
from tkinter import *

x=int(input('Введите начальную координату X:\n'))
y=int(input('Введите начальную координату Y:\n'))
n=int(input('Введите начальную координату N:\n'))
co = (0, 0, 10, 0, 10, 10, 20, 10, 20, 0, 0, 20)

root = Tk()


canvas = Canvas(bg="white" , width=500, height=500)
canvas.pack(anchor=CENTER,pand=1)

canvas.create_polygon(co[0]*n+x, co[1]*n+x,
                      co[2]*n+x, co[3]*n+x,
                      co[4]*n+x, co[5]*n+x,
                      co[6]*n+x, co[7]*n+x,
                      co[8]*n+x, co[9]*n+x,
                      co[10]*n+x, co[11]*n+x,
                      co[12]*n+x, co[13]*n+x,
                      co[14]*n+x, co[15]*n+x)

root.mainloop()
